package com.wxb.service.impl;

import com.wxb.domain.MallCollectEntity;
import com.wxb.mapper.MallCollectMapper;
import com.wxb.service.IMallCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 14:31
 * @Version 1.0
 * @Description
 * @ClassName MallCollectServiceImpl
 **/
@Service
public class MallCollectServiceImpl implements IMallCollectService {
    @Autowired
    private MallCollectMapper collectDao;


    public MallCollectEntity queryObject(Integer id) {
        return collectDao.queryObject(id);
    }


    public List<MallCollectEntity> queryList(Map<String, Object> map) {
        return collectDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return collectDao.queryTotal(map);
    }


    public int save(MallCollectEntity collect) {
        return collectDao.save(collect);
    }


    public void update(MallCollectEntity collect) {
        collectDao.update(collect);
    }


    public int delete(Integer id) {
        return collectDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        collectDao.deleteBatch(ids);
    }
}
